﻿using System;
using System.Collections.Generic;

namespace LeonardoNews.Models
{
    public class Article
    {
        public Article()
        {
            this.Comments = new HashSet<Comment>();
            this.Votes = new HashSet<Vote>();
        }

        public int ID { get; set; }

        public virtual User User { get; set; }

        public string Title { get; set; }

        public string Text { get; set; }

        public string ImageUrl { get; set; }

        public virtual ICollection<Comment> Comments { get; set; }

        public virtual ICollection<Vote> Votes { get; set; }

        public int VoteResult { get; set; }
    }
}
